package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务对象 task
 * 
 * @author ruoyi
 * @date 2024-01-22
 */
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 任务编码 */
    @Excel(name = "任务编码")
    private String code;

    /** 任务描述 */
    @Excel(name = "任务描述")
    private String description;

    /** 模型ID */
    @Excel(name = "模型ID")
    private String modelId;

    /** 专项ID */
    @Excel(name = "专项ID")
    private String specialItemId;

    /** 重试次数 */
    @Excel(name = "重试次数")
    private Long retry;

    /** 报警信息 */
    @Excel(name = "报警信息")
    private String warningInfo;

    /** 报警邮件 */
    @Excel(name = "报警邮件")
    private String email;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updated;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setModelId(String modelId) 
    {
        this.modelId = modelId;
    }

    public String getModelId() 
    {
        return modelId;
    }
    public void setSpecialItemId(String specialItemId) 
    {
        this.specialItemId = specialItemId;
    }

    public String getSpecialItemId() 
    {
        return specialItemId;
    }
    public void setRetry(Long retry) 
    {
        this.retry = retry;
    }

    public Long getRetry() 
    {
        return retry;
    }
    public void setWarningInfo(String warningInfo) 
    {
        this.warningInfo = warningInfo;
    }

    public String getWarningInfo() 
    {
        return warningInfo;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }
    public void setUpdated(Date updated) 
    {
        this.updated = updated;
    }

    public Date getUpdated() 
    {
        return updated;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("description", getDescription())
            .append("modelId", getModelId())
            .append("specialItemId", getSpecialItemId())
            .append("retry", getRetry())
            .append("warningInfo", getWarningInfo())
            .append("email", getEmail())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("created", getCreated())
            .append("updated", getUpdated())
            .toString();
    }
}
